package com.bac.rentmap.osmimport;

/**
 *
 * @author Ivan Holub
 */
public class OsmBbox {

    private Double left;
    private Double bottom;
    private Double right;
    private Double top;

    public OsmBbox(String left, String bottom, String right, String top) {
        this.left = Double.valueOf(left);
        this.bottom = Double.valueOf(bottom);
        this.right = Double.valueOf(right);
        this.top = Double.valueOf(top);
    }

    public boolean isInside(String latStr, String lonStr) {
        Double lat = Double.valueOf(latStr);
        Double lon = Double.valueOf(lonStr);
        boolean retValue = (lat > bottom && lat < top) &&
                (lon > left && lon < right);
        return retValue;
    }
}
